package com.example.film.service;

import com.example.film.entity.InlandWeekChamp;
import com.example.film.mapper.InlandWeekChampMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InlandWeekChampServiceImpl implements InlandWeekChampService{

    @Autowired
    private InlandWeekChampMapper inlandWeekChampMapper;

    @Override
    public List<InlandWeekChamp> findInlandWeekChamp() {
        return inlandWeekChampMapper.findInlandWeekChamp();
    }

    @Override
    public List<InlandWeekChamp> findInlandWeekChampInfo(Integer pageNum, Integer pageSize) {
        int startIndex = (pageNum - 1) * pageSize;
        return inlandWeekChampMapper.findInlandWeekChampInfo(startIndex,pageSize);
    }
}
